﻿using System;
using System.Configuration;

namespace DocumentManager.Abstractions
{
	public abstract class ApplicationBaseConfiguration
	{
		#region Properties

		protected Configuration Manager { get; private set; }

		#endregion

		#region Constructors

		protected ApplicationBaseConfiguration()
		{
			var codeBase = new Uri(GetType().Assembly.GetName().CodeBase);
			Manager = ConfigurationManager.OpenExeConfiguration(codeBase.LocalPath);
		}

		#endregion

		#region Abstract Methods

		public abstract string Get(string parameterName);

		public abstract void Set(string value, string parameterName);

		#endregion
	}
}
